package cc.web.vaaking.common.constant;

import cn.hutool.setting.Setting;

public class SysSettings {
    static Setting defaultSetting = new Setting("conf.setting");

    /**
     * 获取系统设置，配置在conf.setting
     * @param name 设置名
     * @param defaultVal 为空时的替代值
     * @return
     */
    public static String getSetting(String name,String defaultVal){
       return defaultSetting.getStr(name,defaultVal);
    }

    /**
     * 获取系统设置，配置在conf.setting
     * @param name 设置名
     * @return
     */
    public static String getSetting(String name){
        return defaultSetting.getStr(name,null);
    }

}
